<table class="table table-striped">
	<tbody>
		<% topics.each do |topic|%>
			<tr>
				<td>
					<strong><%= link_to topic.node.name,node_topics_path(topic.node_id) %></strong>
				</td>
				<td>
					<%= link_to topic.title,topic_path(topic)%>
					<%= time_ago_in_words(topic.created_at)%>
				</td>
				<td>
					<span class="badge " style="background-color: lightsalmon"><%= topic.likes_count%></span> <b>赞</b>  /

					<span class="badge"><%= topic.replies_count%></span> <b>回复</b>
				</td>
			</tr>
		<%end%>
	</tbody>
</table>